Skip to content

fix(cli): accept /s/ share URLs in import#36396

Open
AayushMainali-Github wants to merge 1 commit into
anomalyco:devfrom
AayushMainali-Github:share-url-import
Open

fix(cli): accept /s/ share URLs in import#36396
AayushMainali-Github wants to merge 1 commit into
anomalyco:devfrom
AayushMainali-Github:share-url-import

Conversation

@AayushMainali-Github

Copy link
Copy Markdown

Issue for this PR

Closes #36395

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

opencode import only accepted /share/<id> URLs. Share links in GitHub PR bodies still use /s/<id>, and opencode pr tries to import those, so import failed. parseShareUrl now accepts both /share/ and /s/. Updated the unit tests and the invalid-URL hint.

How did you verify your code works?

Ran bun test test/cli/import.test.ts in packages/opencode.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

GitHub PR session links still use /s/<id>, but parseShareUrl only
accepted /share/<id>, so opencode pr import failed on those URLs.
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode import rejects /s/ share URLs that GitHub PRs still use

1 participant